#ifndef LOGGER_H
#define LOGGER_H

#include <QDateTime>
#include <QFile>
#include <QTextStream>

/*
    日记记录模块
*/

// 定义日志文件名常量
const QString CAN_LOG_FILE = "can_log.txt";
const QString UART_LOG_FILE = "uart_log.txt";
const QString ETHRNET_LOG_FILE = "ethmet_log.txt";
const QString I2C_LOG_FILE = "i2c_log.txt";
const QString GPIO_LOG_FILE = "gpio_log.txt";
const QString PCIE_LOG_FILE = "pcie_log.txt";
const QString SPI_LOG_FILE = "spi_log.txt";

class Logger {
public:
    static void log(const QString &fileName, const QString &message);
};

#endif // LOGGER_H
